//
//  EGAAppDelegate.h
//  EGA_Archives_iOS
//
//  Created by kitinat on 11/5/12.
//  Copyright (c) 2012 EGA. All rights reserved.
//  Test again
//

#import <UIKit/UIKit.h>

extern NSString *serviceUrl;


@class EGAViewController;
@class EGAEmployeeInfo;
@class EGAAbsentTypeCellInfo;
@class mainEGAViewController;
@interface EGAAppDelegate : UIResponder <UIApplicationDelegate>
{
    NSUserDefaults *userInfo;
    
}
@property (nonatomic, retain) NSString *servicePath;

@property (strong, nonatomic) NSMutableArray *absentTypeCellInfoMasterArray;
@property (strong, nonatomic) NSDateFormatter *dateFormat;
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) EGAEmployeeInfo *employeeInfo;
@property (strong, nonatomic) EGAViewController *viewController;


//@property (strong, nonatomic) mainEGAViewController *viewController;
-(void)saveAbsentTypeInfoJSON:(NSString*)json;
-(void)fetchAbsentInfo:(NSArray*)infoArray;
-(BOOL)connectedToInternet;
-(void)fetchEmployeeInfo:(NSDictionary*)empInfo;
-(void)saveEmployeeInfoJSON:(NSString*)json;

//-(NSString*)getDateTh:(NSString*)strDate;

-(EGAEmployeeInfo*)getCurrentEmpInfo;
@end
